package gijoe.service;

import gijoe.dto.ApplicationDto;
import gijoe.dto.BoardNoticeDto;
import gijoe.dto.BoardRecruitDto;
import gijoe.dto.ChartDto;
import gijoe.dto.CommcdDto;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface AdminService {
	
  //공지사항 게시판
  /*public List<BoardNoticeDto> noticeSelectAllMain();*/
  public List<BoardNoticeDto> noticeSelectAll(HashMap map);
  public int getNoticeCount(); 
  public List<BoardNoticeDto> noticeSearch(HashMap map);
  public int getNoticeSearch(String search);
  
  public BoardNoticeDto noticeSelectOne(String notice_num);
  public void noticeInsert(BoardNoticeDto dto);
  public void noticeDelete(BoardNoticeDto dto);
  public void noticeUpdate(BoardNoticeDto dto);

  //채용공고 게시판
  public List<BoardRecruitDto> recruitSelectAll(HashMap map);
  public int getRecruitCount(); 
  public List<BoardRecruitDto> recruitSearch(HashMap map);
  public int getRecruitSearch(String search);
  
  public BoardRecruitDto recruitSelectOne(String rcrt_num);
  public void recruitInsert(BoardRecruitDto dto);
  public void recruitDelete(BoardRecruitDto dto);
  public void recruitUpdate(BoardRecruitDto dto);
  
  public List<CommcdDto> recruit_cdSelect();
  
  //지원자조회
  public List<ApplicationDto> appSelectAll(HashMap map); 
  public List<BoardRecruitDto> recruitSelectAllOption();
  public int getAppCount(); 
  public List<ApplicationDto> appSearch(HashMap map);
  public int getAppSearch(String app_nm, String app_stat, String rcrt_num);
  
  public Map<String, Object> appSelectOne(String app_num);
  //평가
  public void passUpdate(String pass_list);
  
  
  
	
	// 통계 Start ==============================================================
	
	public List<ChartDto> Chart_recruit_p(); //신입 N
	public List<ChartDto> Chart_recruit_n(); //경력 P
	public List<ChartDto> Chart_sex_man(); //성별 남자
	public List<ChartDto> Chart_sex_she(); //성별 여자
	public List<ChartDto> Chart_age_20(); //나이 20대
	public List<ChartDto> Chart_year_2014(); //년도별 2014년
	
	// 통계 End ================================================================
	
}
